﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ASPNETIdentity;
using Eco.MVC;
using EcoProject1.EcoSpaceAndModel1;
using Microsoft.AspNet.Identity;

namespace MVC5.Controllers
{
  public class MDrivenController : ModelDrivenControllerBase<EcoProject1EcoSpace>
  {
    protected override void AfterEcoSpaceCreate()
    {
      base.AfterEcoSpaceCreate();
      string id = null;
      if (this.User.Identity != null)
          id = this.User.Identity.GetUserId();
      SysSingleton.InstallCurrentUser(id, EcoSpace);
    }

    public ActionResult SeekThings()
    {
      return View("GenericView", EcoProject1.EcoSpaceAndModel1.ViewModelCodeGen_SeekThings.SeekThings.Create(EcoSpace, null));
    
    }
    public ActionResult ValueStore()
    {
      return View("GenericView", EcoProject1.EcoSpaceAndModel1.ViewModelCodeGen_ManageValueStore.ManageValueStore.Create(EcoSpace, null));

    }

  }
}